<script setup lang="ts">
import { computed } from 'vue'
import { useEntPageData } from '../createHelper'
import baseInfo from './base.info.vue'
import baseRead from './base.read.vue'

const { isReadOnly } = useEntPageData()

const comp = computed(() => {
  return isReadOnly.value ? baseRead : baseInfo
})
</script>

<template>
  <component :is="comp" />
</template>
